package com.zhentao.model.pay.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 * @TableName ap_user_payment_order
 */
@TableName(value ="ap_user_payment_order")
@Data
public class ApUserPaymentOrder implements Serializable {
    /**
     * 用户付款订单表ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 付款人ID
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 付款金额
     */
    @TableField(value = "money")
    private Integer money;

    /**
     * 选择会员卡的id
     */
    @TableField(value = "membership_id")
    private Integer membershipId;

    /**
     * 订单备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 订单创建时间
     */
    @TableField(value = "created_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date createdTime;
    @TableField(value = "paycount")
    private Integer paycount;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
